<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位</title>
    <style>
        /* 在没有父元素或者父元素没有定位的情况下 以浏览器为标准定位 
            关键字：absolute 
        */
        
        * {
            margin: 0;
            padding: 0;
        }
        
        .father {
            width: 500px;
            height: 500px;
            background-color: blue;
            position: absolute;
        }
        
        .son {
            position: absolute;
            width: 100px;
            top: 100px;
            right: 10px;
            height: 100px;
            background-color: black;
        }
    </style>
</head>

<body>

    <div class="father">
        <div class="son">


        </div>

    </div>

</body>

</html>